package cn.gson.boot.model.mapper;

import cn.gson.boot.model.pojos.*;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PurchaseReturnMapper {
    //查询退货单号
    String PurchaseReturnOrder();

    //查询所有采购单
    List<Purchase> purchaseList();

    //查询采购详情
    List<Purchase> selectPurchse(Integer purchaseId);

    String purchaseReturnStatus(Integer purReturnId);

    //采购退货分页
    List<PurchaseReturn> selectPurchaseReturn(@Param("search") String search,
                                              @Param("type") String type);

    //采购退货详情
    public List<ReturnDetails> selectPurchaseReturnDetails(Integer purReturnId);

    List<PurchaseDetails> selectPurchaseReturnStatus(Integer purchaseId);


    //根据id查到对象
    public PurchaseReturn selectPurchaseReturnByPurreturnId(Integer purreturnId);
}
